﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Win32Wrapper.Win32.Converter
{
    public class WindowStyleConverter
    {
        public static object Convert(object obj)
        {
            WindowStyles style = (WindowStyles)obj;

            switch(style)
            {
                case WindowStyles.WS_BORDER: return "Border";
                case WindowStyles.WS_CAPTION: return "Caption";
                case WindowStyles.WS_CHILD: return "Child / ChildWindow";
                case WindowStyles.WS_CLIPCHILDREN: return "ClipChildren";
                case WindowStyles.WS_CLIPSIBLINGS: return "ClipSiblings";
                case WindowStyles.WS_DISABLED: return "Disabled";
                case WindowStyles.WS_DLGFRAME: return "DLGFrame";
                case WindowStyles.WS_HSCROLL: return "HScroll";
                case WindowStyles.WS_MAXIMIZE: return "Maximize";
                case WindowStyles.WS_MAXIMIZEBOX: return "MaximizeBox / TabStop";
                case WindowStyles.WS_MINIMIZE: return "Minimize  / Iconic";
                case WindowStyles.WS_MINIMIZEBOX: return "MinimizeBox";
                case WindowStyles.WS_OVERLAPPED: return "Overlapped / Tiled";
                case WindowStyles.WS_POPUP: return "PopUp";
                case WindowStyles.WS_SIZEBOX: return "Sizebox / Thickframe";
                case WindowStyles.WS_SYSMENU: return "Systemmenu";
                case WindowStyles.WS_VISIBLE: return "Visivle";
                case WindowStyles.WS_VSCROLL: return "VScroll";
                default: return (uint)style;
            }

        }
    }
}
